package com.wanpinghui.wphlibrary.model.user.bean;

import android.os.Parcel;
import android.os.Parcelable;

/**
 * Created by tg596 on 2018/2/3.
 */

public class CaseBean implements Parcelable {

    /**
     case_area (string, optional): 面积 ,
     case_date (integer, optional): 日期 ,
     case_name (string, optional): 案例名称 ,
     case_type (string, optional): 产品型号 ,
     company_id (integer, optional): 公司id ,
     created_at (integer, optional): 创建时间 ,
     deleted_at (integer, optional): 删除时间 ,
     id (integer, optional): 主键 ,
     pictures (string, optional): 图片 ,
     updated_at (integer, optional): 更新时间
     */

    private String case_area;
    private String case_type;

    private long case_date;
    private String case_name;
    private long company_id;
    private int created_at;
    private int deleted_at;
    private int id;
    private String pictures;
    private int updated_at;

    public CaseBean(){

    }


    protected CaseBean(Parcel in) {
        case_area = in.readString();
        case_type = in.readString();
        case_date = in.readLong();
        case_name = in.readString();
        company_id = in.readLong();
        created_at = in.readInt();
        deleted_at = in.readInt();
        id = in.readInt();
        pictures = in.readString();
        updated_at = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeString(case_area);
        dest.writeString(case_type);
        dest.writeLong(case_date);
        dest.writeString(case_name);
        dest.writeLong(company_id);
        dest.writeInt(created_at);
        dest.writeInt(deleted_at);
        dest.writeInt(id);
        dest.writeString(pictures);
        dest.writeInt(updated_at);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<CaseBean> CREATOR = new Creator<CaseBean>() {
        @Override
        public CaseBean createFromParcel(Parcel in) {
            return new CaseBean(in);
        }

        @Override
        public CaseBean[] newArray(int size) {
            return new CaseBean[size];
        }
    };

    public long getCase_date() {
        return case_date;
    }

    public void setCase_date(long case_date) {
        this.case_date = case_date;
    }

    public String getCase_name() {
        return case_name;
    }

    public void setCase_name(String case_name) {
        this.case_name = case_name;
    }

    public long getCompany_id() {
        return company_id;
    }

    public void setCompany_id(long company_id) {
        this.company_id = company_id;
    }

    public int getCreated_at() {
        return created_at;
    }

    public void setCreated_at(int created_at) {
        this.created_at = created_at;
    }

    public int getDeleted_at() {
        return deleted_at;
    }

    public void setDeleted_at(int deleted_at) {
        this.deleted_at = deleted_at;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getPictures() {
        return pictures;
    }

    public void setPictures(String pictures) {
        this.pictures = pictures;
    }

    public int getUpdated_at() {
        return updated_at;
    }

    public void setUpdated_at(int updated_at) {
        this.updated_at = updated_at;
    }


    public String getCase_area() {
        return case_area;
    }

    public void setCase_area(String case_area) {
        this.case_area = case_area;
    }

    public String getCase_type() {
        return case_type;
    }

    public void setCase_type(String case_type) {
        this.case_type = case_type;
    }
}
